import request from '@/utils/request'

export function page(params) {
  return request({
    url: '/online/management/admin/manufacturer', params,
    method: 'GET'
  })
}

export function queryManufacturer(manufacturerId) {
  return request({
    url: `/online/management/admin/manufacturer/${manufacturerId}`,
    method: 'GET'
  })
}

export function updateManufacturer(manufacturerId, data) {
  return request({
    url: `/online/management/admin/manufacturer/${manufacturerId}`, data,
    method: 'POST'
  })
}
